package com.github.itdachen.service;

import com.github.itdachen.entity.ProtoTable;
import com.github.itdachen.framework.core.response.TableData;
import com.github.itdachen.sdk.query.ProtoTableQuery;

import java.util.List;

/**
 * IMySqlTableSourceService
 *
 * @author 王大宸
 * @date 2024/4/3 22:11
 */
public interface IDevTableSourceService {


    /***
     * 查询数据库中的表
     *
     * @author 王大宸
     * @date 2023/4/11 21:05
     * @param query query
     * @return com.github.itdachen.framework.core.response.TableData<com.github.itdachen.framework.code.entity.ProtoTable>
     */
    TableData<ProtoTable> findProtoList(ProtoTableQuery query) throws Exception;

    /***
     * 获取需要导入表
     *
     * @author 王大宸
     * @date 2024/4/5 16:21
     * @param tableNames tableNames
     * @return java.util.List<cn.edu.hubu.entity.ProtoTable>
     */
    List<ProtoTable> findTableInfo(String tableNames) throws Exception;

}
